package archive

import (
	"fmt"
	"github.com/gogf/gf/v2/text/gstr"
)

type SevenZip struct{}

func (r *SevenZip) Archive(source []string, destination string) error {
	fmt.Printf("7zip archive\n")
	fmt.Printf("source: %s\n", gstr.Implode(" ", source))
	fmt.Printf("destination: %s\n", destination)
	return nil
}

func (r *SevenZip) Extract(source string, destination []string) error {
	fmt.Printf("7zip extract\n")
	fmt.Printf("source: %s\n", source)
	fmt.Printf("destination: %s\n", gstr.Implode(" ", destination))
	return nil
}
